using System;
using System.Collections.Generic;
using System.Text;

namespace DesignPrinciples.OCPSolution
{
    public class DisplayTemperatureInFahrenheit : IDisplayTemperature
    {
       private readonly int _Temperature;

        public DisplayTemperatureInFahrenheit(int temperature)
        {
            _Temperature = temperature;
        }

        public string Temperature()
        {
            int fahrenheit = (212 - 32)/100*_Temperature + 32;
            return "The current temperature is: " + fahrenheit + " degrees fahh,,,,.";
        }
    }
}
